package com.zhiche.lisa.bms.dao.model.psup;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 人送供方油价维护
 * </p>
 *
 * @author linbao
 * @since 2019-06-18
 */
@TableName("lisa_psup_oilprice")
public class PsupOilprice extends Model<PsupOilprice> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 燃油类型; 0-0#柴油, 1-92#汽油
     */
	@TableField("oil_type")
	private Integer oilType;
    /**
     * 价格
     */
	private BigDecimal price;
    /**
     * 生效日期
     */
	@TableField("effective_date")
	private Date effectiveDate;
    /**
     * 失效日期
     */
	@TableField("invalid_date")
	private Date invalidDate;
    /**
     * 创建人
     */
	private Long creator;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getOilType() {
		return oilType;
	}

	public void setOilType(Integer oilType) {
		this.oilType = oilType;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Date getEffectiveDate() {
		return effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PsupOilprice{" +
			", id=" + id +
			", oilType=" + oilType +
			", price=" + price +
			", effectiveDate=" + effectiveDate +
			", invalidDate=" + invalidDate +
			", creator=" + creator +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
